﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
		<!--[if gt IE 8]>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <![endif]-->
		<title>报名结果</title>

		<link href="<%=basePath%>bootstrap/css/bootstrap.min.css"
			rel="stylesheet">
		<link href="<%=basePath%>bootstrap/css/style.css" rel="stylesheet">

		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesnt work if you view the page via file:// -->
		<!--[if lt IE 9]>
          <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
          <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
	</head>
	<body>
		<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
			<div class="container-fluid">
				<!-- Brand and toggle get grouped for better mobile display -->
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed"
						data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="#">报名结果</a>
				</div>

				<!-- Collect the nav links, forms, and other content for toggling -->
				<div class="collapse navbar-collapse"
					id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav navbar-right">
						<li>
							<a href="http://as.landonni.com" target="_blank"><span
								class="glyphicon glyphicon-leaf"></span> 咨询问答</a>
						</li>
					</ul>
				</div>
			</div>
		</nav>

		<div class="container-fluid">
			<div class="jumbotron">
				<h1>
					<c:choose>
						<c:when test="${error == 5}">
							你已经报名过了
							<c:set value="resing" var="tip"></c:set>
						</c:when>
						<c:otherwise>
						报名失败
						<c:set value="false" var="tip"></c:set>
						</c:otherwise>
					</c:choose>
					
				</h1>
				<c:choose>
					<c:when test="${error == 3}">
						<p>
							验证码写错了 ...
						</p>
					</c:when>
					<c:when test="${error == 2}">
						<p>
							你是不是没有标识码 ...
						</p>
					</c:when>
					<c:when test="${error == 5}">
						<p>
							 确定要再报名吗？
						<p>
							<a role="button" href="s_${singupId }.do?reSing"
								class="btn btn-primary btn-lg">重复报名</a>
						</p>


					</c:when>
        <c:otherwise>
        <p>
        你是不是黑客 ...
        </p>
        </c:otherwise>
        </c:choose>
        <br />
        <p>
        		<c:if test="${tip == 'false'}">
        		<a role="button" onClick="window.location.href=document.referrer;"
						class="btn btn-primary btn-lg">重新输入 </a>
        		</c:if>
					
				</p>

    </div>
</div>
<jsp:include page="singup_footer.jsp"></jsp:include>
</body>
</html>


